<?php

/**
 * Name: 用户数据工作室
 * User: Wudean
 */
namespace App\Http\Controllers\Mapi;
use App\Http\Controllers\Controller;
use App\Services\WxUsersService;
use Illuminate\Http\Request;
use App\Api\Helper\ReturnMessage;
use Illuminate\Support\Facades\Cache;

class WxUsersController extends Controller
{
    /**
     * @param Request $request
     * @return \Dingo\Api\Http\Response
     * @name 获取用户信息
     * @user IHammer
     */
    public function getUserInfo(Request $request){
        $request->offsetSet("user_id",constant('_USER_ID'));
        $res = WxUsersService::getUserInfoHandle($request);
        return ReturnMessage::successToAppInfo($res);
    }
}
